.class Lcom/waiqin365/lightapp/im/adapter/o;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/im/adapter/n;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/adapter/n;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    const/4 v3, 0x4

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/n;->a:Lcom/waiqin365/lightapp/im/adapter/an;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/an;->c:Landroid/widget/ProgressBar;

    invoke-virtual {v0, v4}, Landroid/widget/ProgressBar;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/n;->a:Lcom/waiqin365/lightapp/im/adapter/an;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/an;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/n;->a:Lcom/waiqin365/lightapp/im/adapter/an;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/an;->b:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v2, v2, Lcom/waiqin365/lightapp/im/adapter/n;->b:Lcom/hyphenate/chat/EMMessage;

    invoke-virtual {v2}, Lcom/hyphenate/chat/EMMessage;->progress()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "%"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/n;->b:Lcom/hyphenate/chat/EMMessage;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage;->status()Lcom/hyphenate/chat/EMMessage$Status;

    move-result-object v0

    sget-object v1, Lcom/hyphenate/chat/EMMessage$Status;->SUCCESS:Lcom/hyphenate/chat/EMMessage$Status;

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/n;->a:Lcom/waiqin365/lightapp/im/adapter/an;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/an;->c:Landroid/widget/ProgressBar;

    invoke-virtual {v0, v3}, Landroid/widget/ProgressBar;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/n;->a:Lcom/waiqin365/lightapp/im/adapter/an;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/an;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/n;->c:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/n;->b:Lcom/hyphenate/chat/EMMessage;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMMessage;->status()Lcom/hyphenate/chat/EMMessage$Status;

    move-result-object v0

    sget-object v1, Lcom/hyphenate/chat/EMMessage$Status;->FAIL:Lcom/hyphenate/chat/EMMessage$Status;

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/n;->a:Lcom/waiqin365/lightapp/im/adapter/an;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/an;->c:Landroid/widget/ProgressBar;

    invoke-virtual {v0, v3}, Landroid/widget/ProgressBar;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/n;->a:Lcom/waiqin365/lightapp/im/adapter/an;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/an;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/n;->a:Lcom/waiqin365/lightapp/im/adapter/an;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/an;->d:Landroid/widget/ImageView;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/n;->d:Lcom/waiqin365/lightapp/im/adapter/f;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/adapter/f;->b(Lcom/waiqin365/lightapp/im/adapter/f;)Landroid/app/Activity;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v2, v2, Lcom/waiqin365/lightapp/im/adapter/n;->d:Lcom/waiqin365/lightapp/im/adapter/f;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/adapter/f;->b(Lcom/waiqin365/lightapp/im/adapter/f;)Landroid/app/Activity;

    move-result-object v2

    const v3, 0x7f080314

    invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v2, v2, Lcom/waiqin365/lightapp/im/adapter/n;->d:Lcom/waiqin365/lightapp/im/adapter/f;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/adapter/f;->b(Lcom/waiqin365/lightapp/im/adapter/f;)Landroid/app/Activity;

    move-result-object v2

    const v3, 0x7f0802ea

    invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/o;->a:Lcom/waiqin365/lightapp/im/adapter/n;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/adapter/n;->c:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    goto :goto_0
.end method
